package com.yeyks.common.utils.apputil.enums;

/**
 * 相关服务
 * @author Administrator
 */
public enum DevicesEnum {
    /**
     * 相关服务集合信息
     */
    Internet("Internet","宽带WIFI"),
    Breakfast("Breakfast","早餐"),
    Window("Window","窗户"),
    Receiving("Receiving","接机服务"),
    Swimming("Swimming","游泳池"),
    Parking("Parking","免费停车"),
    ElectricKettle("ElectricKettle","电热水壶"),
    Smoke("Smoke","可否吸烟"),
    ;

    /**
     * 英文
     */
    private String en;

    /**
     * 中文
     */
    private String cn;

    DevicesEnum(String en, String cn) {
        this.en = en;
        this.cn = cn;
    }

    public String getEn() {
        return en;
    }

    public void setEn(String en) {
        this.en = en;
    }

    public String getCn() {
        return cn;
    }

    public void setCn(String cn) {
        this.cn = cn;
    }

    /**
     * 根据 en 英文 获取去 cn 中文
     * @param en 英文
     * @return
     */
    public static String getCNByEN(String en){
        for(DevicesEnum bedTypeEnum: DevicesEnum.values()){
            if(en.equals(bedTypeEnum.getEn())){
                return bedTypeEnum.getCn();
            }
        }
        return  null;
    }
}
